import { Controller, Get, Post, Body, Patch, Param, Delete } from '@nestjs/common';
import { DynamicmoduleService } from './dynamicmodule.service';
import { CreateDynamicmoduleDto } from './dto/create-dynamicmodule.dto';
import { UpdateDynamicmoduleDto } from './dto/update-dynamicmodule.dto';

@Controller('dynamicmodule')
export class DynamicmoduleController {
  constructor(private readonly dynamicmoduleService: DynamicmoduleService) {}

  @Post()
  create(@Body() createDynamicmoduleDto: CreateDynamicmoduleDto) {
    return this.dynamicmoduleService.create(createDynamicmoduleDto);
  }

  @Get()
  findAll() {
    return this.dynamicmoduleService.findAll();
  }

  @Get(':id')
  findOne(@Param('id') id: string) {
    return this.dynamicmoduleService.findOne(+id);
  }

  @Patch(':id')
  update(@Param('id') id: string, @Body() updateDynamicmoduleDto: UpdateDynamicmoduleDto) {
    return this.dynamicmoduleService.update(+id, updateDynamicmoduleDto);
  }

  @Delete(':id')
  remove(@Param('id') id: string) {
    return this.dynamicmoduleService.remove(+id);
  }
}
